#include "PlatformProperty.h"

// SW_FC_012_006 获取电池剩余电量(千瓦时kWh）
// N7该逻辑会有变化
SYSTEM_CONTINUOUS_PROPERTY(EV_BATTERY_LEVEL, float) {
    builder.sampleRate(1.0f, 10.0f)
    .area(VehicleArea::GLOBAL)
    .initValue([]() {
        return 0.0f;
    })
    .immutableStatus(PropertyStatus::Active)
    .withValueBySignals(
        []([[maybe_unused]] const float& last) {
        return SIGNAL.getHvBattEgyAvlDcha1() / 1000.0f;
    },
    SignalRX::HvBattEgyAvlDcha1);
}